﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeFile="RemarkCenter.aspx.cs" Inherits="RemarkCenter" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 240px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table class="style1">
        <tr>
            <td align="left" class="style2">
                商品类型:<asp:DropDownList ID="ddlType" runat="server" Width="170px" 
                    AutoPostBack="True" onselectedindexchanged="ddlType_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td align="left">
                商品名称:<asp:DropDownList ID="ddlPrdt" runat="server" Width="170px" 
                    AutoPostBack="True" onselectedindexchanged="ddlPrdt_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
    </table>

    <table class="style1">
        <tr>
         <td>
             <asp:ListView ID="lvRemarkCenter" runat="server" GroupItemCount="1" 
                 onpagepropertieschanging="lvRemarkCenter_PagePropertiesChanging" 
                 onitemdatabound="lvRemarkCenter_ItemDataBound">
                 <GroupTemplate>
                     <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                 </GroupTemplate>
                 <LayoutTemplate>
                     <table class="style1">
                         <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
                     </table>
                     <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvRemarkCenter" 
                         PageSize="20">
                         <Fields>
                             <asp:NumericPagerField />
                         </Fields>
                     </asp:DataPager>
                 </LayoutTemplate>
                 <ItemTemplate>
                 <tr align="left">                   
                   <td>
                       商品名称:<asp:HyperLink ID="lblPrdt" NavigateUrl='<%# "CommonProducts.aspx?prdtId="+ Container.DataItem %>' Text='<%# GetRelatedColumn.GetPrdtName(Container.DataItem) %>' runat="server"  />
                   </td>
                  </tr>
                  <tr align="left">
                   <td style="text-indent:20px">
                     <asp:ListView ID="lvRemarkCenter1" runat="server" GroupItemCount="1" 
                         onpagepropertieschanging="lvRemarkCenter_PagePropertiesChanging">
                         <GroupTemplate>
                             <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                         </GroupTemplate>
                         <LayoutTemplate>
                             <table class="style1">
                                 <tr>
                                 <td>标题:</td>
                                 <td>用户名:</td>
                                 <td>创建日期:</td>
                                 </tr>
                                 <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
                             </table>
                             <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvRemarkCenter1" 
                                 PageSize="10" Visible="false">
                                 <Fields>
                                     <asp:NumericPagerField />
                                 </Fields>
                             </asp:DataPager>
                         </LayoutTemplate>
                         <ItemTemplate>
                             <tr align="left">
                                 <td>
                                     <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                                 </td>
                                 <td>
                                     <asp:Label ID="lblUser" runat="server" Text='<%# Eval("UserID") %>'></asp:Label>
                                 </td>
                                 <td>
                                     <asp:Label ID="lblDate" runat="server" Text='<%# Eval("CreateDate") %>'></asp:Label>
                                 </td>
                             </tr>
                             <tr>
                                 <td align="left" colspan="4" style="text-indent:20px">
                                     内容:<asp:Label ID="lblContent" runat="server" Text='<%# Eval("Content") %>'></asp:Label>
                                 </td>
                             </tr>
                         </ItemTemplate>
                     </asp:ListView>                   
                   </td>
                 </tr>
                 </ItemTemplate>
             </asp:ListView>
            </td>
        </tr>
    </table>
<%--    <table class="style1">
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                标题:</td>
            <td>
                评论人<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
            </td>
            <td>
                评论商品<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
            </td>
            <td>
                评论时间:<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                内容<asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
    </table>--%>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content_rightarea" Runat="Server">
</asp:Content>

